package com.estate.bean;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.estate.util.JsonResult;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_device")
public class Device implements Serializable {
    @TableId
    private String id;
    private String communityId;
    private String code;
    private String name;
    private String brand;
    private Double unitPrice;
    private Integer num;
    private Integer expectedUsefulLife;
    @TableField(fill = FieldFill.INSERT)
    private String createTime;
    @TableField(fill = FieldFill.UPDATE)
    private String updateTime;
    private String purchaseDate;
    private Integer isDelete;
    @TableField(exist = false)
    private JsonResult quarters;
}
